#include "Controls/GroupBox.h"
#include "cinder/gl/gl.h"
namespace cxgui
{

void GroupBox::DrawForeground()
{
	DrawBorder();
}

void GroupBox::DrawBorder()
{
	auto borderThickness = 2;
	auto displayRect = _clientRectangle;
	auto borderColor = ColorA(0.f, 0.9f, 0.9f, 1.f);		
	gl::color(borderColor);
	gl::lineWidth(borderThickness);
	gl::drawStrokedRect(displayRect);
}

GroupBox::~GroupBox()
{
}

cinder::Vec2f GroupBox::GetPreferedSize()
{
	throw std::exception("The method or operation is not implemented.");
}

void GroupBox::Draw()
{
	throw std::exception("The method or operation is not implemented.");
}

}